package cn.hyf.yanhua;

import android.app.Activity;
import android.os.Bundle;
import android.view.SurfaceView;

import com.yh.DrawYH;
import com.yh.HolderSurfaceView;

public class YanHuaActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.main);
		SurfaceView v = new SurfaceView(this);
		HolderSurfaceView.getInstance().setSurfaceView(v);
		//v.setBackgroundResource(R.drawable.bg);
		this.setContentView(v);
		DrawYH yh = new DrawYH();
		v.setOnTouchListener(yh);
		yh.begin();
	}
}